package com.gxa.shop.service.impl;/**
 * @author JunYu
 * @create 2022-10-05--23:06
 */

import com.gxa.shop.mapper.TestMapper;
import com.gxa.shop.pojo.Test;
import com.gxa.shop.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: take-out-project
 *
 * @description: 测试服务的实现
 *
 * @author: JunYu
 *
 * @create: 2022-10-05 23:06
 **/
@Service
public class TestServiceImpl implements TestService {
    @Autowired
    TestMapper mapper;

    @Override
    public R insert() {
        Test test = new Test();
        test.setData("测试数据");
        int insert = mapper.insert(test);
        R r = new R();
        r.setData(insert);
        r.setCode(200);
        return r;
    }
}
